import { RouteConfig } from 'vue-router'
const files = require.context('.', false, /\.ts$/)
let routes: Array<RouteConfig> = []

files.keys().forEach(key => {
  if (key === './index.ts') return
  routes = routes.concat(files(key).default)
})

export default routes
